package com.zp.base.entity.bo;

import com.zp.base.entity.ClinicSchedule;
import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 出诊安排业务对象
 *
 * @author zhang peng
 * @date 2023-01-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ClinicScheduleBo extends BaseEntity {

    /**
     * 主键
     */
    private String scheduleId;

    /**
     * 所属号别
     */
    @NotBlank(message = "所属号别不能为空", groups = {AddGroup.class, EditGroup.class})
    private String clinicIndexId;

    /**
     * 出诊星期
     */
    private String dayOfWeek;

    /**
     * 出诊时段-数据字典
     */
    private String timeDesc;

    /**
     * 限号数
     */
    private Long limitNum;

    /**
     * 限预约号数
     */
    private Long limitPreNum;

    /**
     * 机构ID
     */
    private String orgId;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 出诊安排list
     */
    private List<ClinicSchedule> saveInfoList;

}
